package com.hn.zhijian.system.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hn.zhijian.system.entity.SysUser;
import com.hn.zhijian.base.mapper.BaseMapper;
import com.hn.zhijian.system.model.request.UserRequest;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author carl chen
 * @since 2019-11-17
 */
public interface UserMapper extends BaseMapper<SysUser> {
     Page<SysUser> findUser(Page<SysUser> page, @Param("request") UserRequest request);

     Page<SysUser> findUserByRoleCode(Page<SysUser> page, @Param("roleCode")String roleCode);

     SysUser getUser(@Param("userName") String userName);
}
